package route

import (
	"net/http"
	"pdocker/types"

	"github.com/gin-gonic/gin"
	log "github.com/sirupsen/logrus"
)

func Index(c *gin.Context) {
	c.String(http.StatusOK, "index")
}

func RandomPlus(c *gin.Context) {
	c.Query("")
}

func simpleReturn(c *gin.Context, code int, taskid, msg string) {
	response := types.TaskResponse{
		TaskId: taskid,
		Code:   code,
		Msg:    msg,
	}
	log.Debugln(response)
	c.PureJSON(code, response)
}
